home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
MPW_TOOL
/
TOOLS
/
TOOLS_WI
/
ICON_8
/
BENCH_FO
/
SHUFFLE.ICN
< prev
Wrap
Text File
|
1990-04-06
|
669b
|
25 lines
############################################################################
#
# Name: shuffle.icn
#
# Title: Shuffle values
#
# Author: Ward Cunningham
#
# Date: June 10, 1988
#
############################################################################
#
# The procedure shuffle(x) shuffles a string or list. In the case
# that x is a string, a corresponding string with the characters
# randomly rearranged is produced. In the case that x is a list,
# the values in the list are randomly rearranged.
#
############################################################################
procedure shuffle(x)
x := string(x)
every !x :=: ?x
return x
end